<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>

<html>
<head>
    <title>部门列表</title>
    <meta name="menu" content="deptManage"/>
</head>

<body>
<div class="content_block">

	<!-- add by sevenSpend 2011-11-26 start -->
    <%@ include file="/common/messages.jsp" %>
	<!-- add by sevenSpend 2011-11-26 end -->
	
    <h2 class="jquery_tab_title">部门管理</h2>

    <form action="dept.action" method="post" id="mainForm">
        <div>
            <table width="100%" cellpadding="0" id="table_liquid" cellspacing="0">
                <thead>
                <tr>
                    <th>名称</th>
            		<!-- add by sevenSpend 2011-11-26 start -->
                    <th>类别</th>
            		<!-- add by sevenSpend 2011-11-26 end -->
                    <th>授权</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <s:iterator value="allDeptList">
                    <tr>
                        <td>${name}&nbsp;</td>
            			<!-- add by sevenSpend 2011-11-26 start -->
                        <td><code:dispCodeDesc codeType="DEPT_CATEGORY" codeValue="${category}"/>&nbsp;</td>
            			<!-- add by sevenSpend 2011-11-26 end -->
                        <td><stringDisplay:short length="80" fullText="${authNames}" />&nbsp;</td>
                        <td>
                            <a href="dept!input.action?id=${id}" class="edit_icon" title="Edit">修改</a>
                			<!-- update by sevenSpend 2011-11-27 start -->
                            <!-- <a href="dept!delete.action?id=${id}" class="delete_icon" title="Delete">删除</a> -->
                            <a href="dept!delete.action?id=${id}&deptId=${deptId}&name=${name}" class="delete_link" title="删除">删除</a>
                			<!-- update by sevenSpend 2011-11-27 end -->
                        </td>
                    </tr>
                </s:iterator>
                </tbody>
            </table>
            <a href="dept!input.action" class="button">增加新部门</a>
        </div>
    </form>
</div>
<!--end content_block-->
</body>
</html>